package com.sinosoft.weixin.controller.dto;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by huzhengying on 2017/11/21.
 */
public class RequestHeadDTO {
    private String tranDate;
    private String tranTime;
    private String tranNo;
    private String funcFlag;

    private RequestHeadDTO(){

    }

    public RequestHeadDTO(String tranNo, String funcFlag) {
        Date date = new Date();
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
        String tranDate = dateFormat.format(date);
        SimpleDateFormat timeFormat = new SimpleDateFormat("hh:mm:ss");
        String tranTime = timeFormat.format(date);

        this.tranDate = tranDate;
        this.tranTime = tranTime;
        this.tranNo = tranNo;
        this.funcFlag = funcFlag;
    }

    public String getTranDate() {
        return tranDate;
    }

    public void setTranDate(String tranDate) {
        this.tranDate = tranDate;
    }

    public String getTranTime() {
        return tranTime;
    }

    public void setTranTime(String tranTime) {
        this.tranTime = tranTime;
    }

    public String getTranNo() {
        return tranNo;
    }

    public void setTranNo(String tranNo) {
        this.tranNo = tranNo;
    }

    public String getFuncFlag() {
        return funcFlag;
    }

    public void setFuncFlag(String funcFlag) {
        this.funcFlag = funcFlag;
    }
}
